import {getRequest, postRequest} from "../utils/MyRequest.js";

/**
 * 提交答案
 * private Long userId;
 * private Long surveyId;
 * private List<Answer> answerList;
 */
export function submitAnswerApi(data) {
    return postRequest("/answer/submit",data)
}


/**
 * 获取单张答卷
 */
export function getAnswerSheetApi(id) {
    return getRequest("/answer/answer-sheet/" + id);
}